/**
 * Created by Administrator on 2017/4/5 0005.
 */
import React from "react";
import {Modal} from 'fly';
import GetQiNiuTokenMutation from "../mutation/GetQiNiuTokenMutation"
import Relay from "react-relay";
import SaveImageMutation from "../mutation/SaveImageMutation"

export default class CalendarModal extends React.Component{
    constructor(props){
        super(props);
        this.state={
            visible:false,
            imageUrl:'',
            index:'',
            url:''
        }
        this.file =''
        this.imageUrl = ''
    }

    componentWillMount(){

    }

    closemodal(){
        this.setState({visible:false});
    }


    render(){
        return (
            <Modal visible={this.state.visible} footer={null} onCancel={this.closemodal.bind(this)} title="图片">
                <div className="order_frorm_addimgmodal_div">
                    <div>
                      {
                        !this.props.disn ?
                          (<input ref={'upfile'} type="file" style={{position:"absolute",height:206,width:314,opacity:0
                                                                     ,marginLeft:73}} id={"choiceImageupdata"+this.state.index}/>) : ''
                      }
                        <img className="order_frorm_addimgmodal_img"  src={this.state.url} />

                    </div>


                </div>
            </Modal>
        )
    }
}
